package guanqu.beans;

import java.io.Serializable;
import java.util.Calendar;


public class IrrBMSystemPK implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6805802043163483626L;
	String stadiaCode;// 测站编码
	Calendar meaTime; // 采集时间
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
	public Calendar getMeaTime() {
		return meaTime;
	}
	public void setMeaTime(Calendar meaTime) {
		this.meaTime = meaTime;
	}
	
	@Override
	public boolean equals(Object obj) {
//		return super.equals(obj);
		
		if(obj instanceof StadiaCodeMeaTimePrimaryKey){  
        	StadiaCodeMeaTimePrimaryKey key = (StadiaCodeMeaTimePrimaryKey)obj ;  
            if(this.stadiaCode == key.getStadiaCode() && this.meaTime.equals(key.getMeaTime())){  
                return true ;  
            }  
        }  
        return false ;  
		
	}
	
	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return stadiaCode.hashCode();
	}
	
	
}
